package com.bosssoft.hr.train.j2se.exception;
/**
 * @Classname: ExceptionCode
 * @Description:常用工具类作业
 * @author: zoubinyan
 * @Date: 2023/2/22
 */


public enum ExceptionCode {
    //非法访问
    ILLEGAL_ACCESS("100","非法访问"),
    //数据库中列不存在
    COLUMN_NOT_EXIT("101","数据库中列不存在"),
    //参数不合理
    INVALID_PARAM("102","参数不合理");
    private String code;
    private String message;


    ExceptionCode(String code,String msg){
        this.code = code;
        this.message = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg(){
        return message;
    }
}
